package cn.bx.bid.service;

import cn.bx.bid.entity.Userrole;
import cn.bx.bid.repository.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = false)
public class RoleService {

    @Autowired
    private RoleRepository roleRepository;

    public List<Userrole> findAll() {
        return roleRepository.findAll();
    }
}
